<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<script type="text/javascript">
	var artPicGrid = null;
	var editPicDialog = null;
	$(function(){
		artPicGrid = $("#art_pic_grid").ligerGrid({
				title : '艺术画列表',
                columns: [
                { display: '标识', name: 'identifier', isSort : false, width: 120 },
                { display: '路径', name: 'imagePath',isSort : false, width: 200 },
                { display: '标题', name: 'title',isSort : false, width: 200 }, 
                { display: '创建时间', name: 'gmtCreated',isSort : false,
                  render: function(record, rowindex, value, column){
                	 return (new Date(value.time)).format("yyyy年MM月dd日 hh:mm:ss");
                  }}, 
                { display: '最后修改时间', name: 'gmtModified',isSort : false,
                  render: function(record, rowindex, value, column){
                	 return (new Date(value.time)).format("yyyy年MM月dd日 hh:mm:ss");
                  }
                },
                {
                	display: '<a href="javascript:;" onclick="addArtPic()">添加艺术画</a>', 
                	name: 'id',
                	isAllowHide: false, 
                	isSort : false,
					render: function (record, rowindex, value, column){
						var html = ''; 
						return html; 
					}
                }
                ], 
                pageSize:30,
                root :'list',
                record:'totalRecord',
                url: "/misc/artPic/artPicGrid.htm", 
                width: '99%',height:'99%'
            });


	});
	function addArtPic(){
		editPicDialog = $.ligerDialog.open({ height: 500,width:800, url: "/misc/artPic/addArtPicWeb.htm", isResize: false ,modal:true,title:'添加艺术画'});
	
	}
</script>
<div id="art_pic_grid" style="margin:0; padding:0"></div>